package com.csd.action.team;

import com.csd.helper.ActionResult;
import com.csd.pojo.ChangeRecord;
import com.csd.service.IChangeRecordService;
import com.csd.serviceImpl.ChangeRecordService;

/**
 * 
 * Action：申请变更项目信息
 * 
 * @author csd
 * @version 1.0
 * 
 * <br>
 *          修订时间：2009-12-17 <br>
 *          修改原因：创建文件 <br>
 *          修改人：刘世彬
 * 
 * <br>
 * 
 */
public class ChangeApplyAction {
	/** 项目变更 */
	private ChangeRecord changeApply;
	/** 项目ID */
	private String ProjectID;

	private IChangeRecordService service;

	public IChangeRecordService getService() {
		return service;
	}

	public void setService(IChangeRecordService service) {
		this.service = service;
	}

	public ChangeRecord getChangeApply() {
		return changeApply;
	}

	public void setChangeApply(ChangeRecord changeApply) {
		this.changeApply = changeApply;
	}

	public String getProjectID() {
		return ProjectID;
	}

	public void setProjectID(String projectID) {
		ProjectID = projectID;
	}

	public String execute() {
		String result = ActionResult.fail;
		
		if (service.saveProjectChange(this.changeApply)) {
			result = ActionResult.success;
		}

		return result;
	}

}
